package com.blog.module.news.mapper;

import com.blog.module.news.pojo.NewsInfo;
import com.blog.module.news.pojo.NewsInfoExample;
import com.blog.module.news.vo.NewsInfoVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface NewsInfoMapper {
    int countByExample(NewsInfoExample example);

    int deleteByExample(NewsInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(NewsInfo record);

    int insertSelective(NewsInfo record);

    List<NewsInfo> selectByExampleWithBLOBsWithRowbounds(NewsInfoExample example, RowBounds rowBounds);

    List<NewsInfo> selectByExampleWithBLOBs(NewsInfoExample example);

    List<NewsInfo> selectByExampleWithRowbounds(NewsInfoExample example, RowBounds rowBounds);

    List<NewsInfo> selectByExample(NewsInfoExample example);

    NewsInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") NewsInfo record, @Param("example") NewsInfoExample example);

    int updateByExampleWithBLOBs(@Param("record") NewsInfo record, @Param("example") NewsInfoExample example);

    int updateByExample(@Param("record") NewsInfo record, @Param("example") NewsInfoExample example);

    int updateByPrimaryKeySelective(NewsInfo record);

    int updateByPrimaryKeyWithBLOBs(NewsInfo record);

    int updateByPrimaryKey(NewsInfo record);
    
    List<NewsInfoVo> selectNewInfoBytitleAndnewsId(@Param("record") NewsInfo record,@Param("limitStart") Integer limitStart, @Param("limitEnd") Integer limitEnd);
    
    int countNewInfoBytitleAndnewsId(NewsInfo record);
    
    NewsInfoVo selectById(@Param("id") Integer id);
    
}